@import '@/app/styles/variables';

.company {
  all: unset;
  box-sizing: border-box;
  display: flex;
  padding: 24px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  cursor: pointer;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  border-radius: 24px;
  border: 1px solid var(--simple-gray-day, #e1e1e1);
  background: var(--simple-morning, #fff);
}
.logo {
  position: relative;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--simple-morning, #fff);
  img {
    object-fit: cover;
    object-position: center center;
  }
}

.text_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  flex: 1 0 0;
}

.titleSmall {
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 130% */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  position: relative;
}

.title {
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  max-height: 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: unset;
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 21px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(-95deg, #ffffff 50.25%, rgba(255, 255, 255, 0) 95.73%);
}

.description {
  color: var(--simple-gray-midnight, #7d7d7d);
  overflow: hidden;
  font-size: 16px;
  width: 100%;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  display: inline-block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  position: relative;
}

.description::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 18px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(-95deg, #ffffff 20.25%, rgba(255, 255, 255, 0) 95.73%);
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #000000;
  transform: scale(1.5) rotate(-0.25turn);
}

@include media(sm) {
  .company {
    padding: 16px;
    border-radius: 16px;
    gap: 16px;
  }
  .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 21px;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(-90deg, #ffffff 20.25%, rgba(255, 255, 255, 0) 95.73%);
  }
  .description::after {
    width: 30%;
    height: 12.5px;
    background: linear-gradient(-90deg, #ffffff 45.25%, rgba(255, 255, 255, 0) 95.73%);
  }
  .title,
  .titleSmall {
    font-size: 16px;
    line-height: 22px; /* 137.5% */
  }
  .description {
    font-size: 12px;
    line-height: 16px; /* 133.333% */
  }
  .logo {
    display: flex;
    width: 56px;
    height: 56px;
    padding: 10px;
    justify-content: center;
    align-items: center;
  }
  .arrow {
    transform: scale(1) rotate(-0.25turn);
  }
}
